#This is for the Mac
#Here is some code we use to identify the provisioning profile we want to ship to QA with the project:
#Copy profile from $ProfileName
cd "/Users/macbuild/Library/MobileDevice/Provisioning Profiles/"
ProfileFile="`grep -al $ProfileName *.mobileprovision`"
echo "Also copy $ProfileFile to the network"
if cp -fv $ProfileFile /Builds/$buildid/
then
    echo "Matching Provisioning Certificate: shared/Builds/$buildid/$ProfileFile"
fi